<?php
// 热门信息内容
class PostsHot extends CWidget {
    public $node_id;
    public $limit;
    public function run() {
        $posts = Post::model()->findHotPosts($this->node_id, $this->limit);
        $this->render('PostsHot', array(
            'posts' => $posts,
        ));
    }
}
